<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>bn::string_view class | Butano Docs</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
  <link rel="icon" href="favicon-dark.png" type="image/png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#22272e" />
</head>
<body>
<header><nav id="navigation">
  <div class="m-container">
    <div class="m-row">
      <span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
        <a href="https://github.com/GValiente/butano">Butano</a> <span class="m-breadcrumb">|</span> <a href="index.html" class="m-thin">Docs</a>
      </span>
      <div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
        <a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
          <path id="m-doc-search-icon-path" d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z"/>
        </svg></a>
        <a id="m-navbar-show" href="#navigation" title="Show navigation"></a>
        <a id="m-navbar-hide" href="#" title="Hide navigation"></a>
      </div>
      <div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
        <div class="m-row">
          <ol class="m-col-t-6 m-col-m-none">
            <li><a href="pages.html">Pages</a></li>
            <li><a href="modules.html">Modules</a></li>
          </ol>
          <ol class="m-col-t-6 m-col-m-none" start="3">
            <li><a href="namespaces.html">Namespaces</a></li>
            <li><a href="annotated.html">Classes</a></li>
            <li><a href="files.html">Files</a></li>
            <li class="m-show-m"><a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
              <use href="#m-doc-search-icon-path" />
            </svg></a></li>
          </ol>
        </div>
      </div>
    </div>
  </div>
</nav></header>
<main><article>
  <div class="m-container m-container-inflatable">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <h1>
          <span class="m-breadcrumb"><a href="namespacebn.html">bn</a>::<wbr/></span>string_view <span class="m-thin">class</span>
          <div class="m-doc-include m-code m-inverted m-text-right"><span class="cp">#include</span> <a class="cpf" href="bn__string__view_8h.html">&lt;bn_string_view.h&gt;</a></div>
        </h1>
        <p>Refers to a constant contiguous sequence of char values.</p>
        <nav class="m-block m-default">
          <h3>Contents</h3>
          <ul>
            <li>
              Reference
              <ul>
                <li><a href="#pub-types">Public types</a></li>
                <li><a href="#pub-static-attribs">Public static variables</a></li>
                <li><a href="#typeless-methods">Constructors, destructors, conversion operators</a></li>
                <li><a href="#pub-methods">Public functions</a></li>
                <li><a href="#friends">Friends</a></li>
              </ul>
            </li>
          </ul>
        </nav>
<p>It doesn&#x27;t store the char data like a string does.</p>
        <section id="pub-types">
          <h2><a href="#pub-types">Public types</a></h2>
          <dl class="m-doc">
            <dt id="a7d04ae096eaabf9da3b726419b0756d7">
              using <a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc-self">value_type</a> = char
            </dt>
            <dd>Value type alias.</dd>
            <dt id="a8d641541b3c92fe421c0172668d386b4">
              using <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc-self">size_type</a> = int
            </dt>
            <dd>Size type alias.</dd>
            <dt id="a4ad72e821376ec59504205a7a69b4e43">
              using <a href="#a4ad72e821376ec59504205a7a69b4e43" class="m-doc-self">difference_type</a> = int
            </dt>
            <dd>Difference type alias.</dd>
            <dt id="a955e6e8229cd4dd150c6c47d0d057910">
              using <a href="#a955e6e8229cd4dd150c6c47d0d057910" class="m-doc-self">reference</a> = char&amp;
            </dt>
            <dd>Reference alias.</dd>
            <dt id="af065d6c17887002b566e33e5be40ca60">
              using <a href="#af065d6c17887002b566e33e5be40ca60" class="m-doc-self">const_reference</a> = const char&amp;
            </dt>
            <dd>Const reference alias.</dd>
            <dt id="a575284b8786514fcb9cc112bb6aab80f">
              using <a href="#a575284b8786514fcb9cc112bb6aab80f" class="m-doc-self">pointer</a> = char*
            </dt>
            <dd>Pointer alias.</dd>
            <dt id="a2f338d9a2eff32c5c28aecad98cc23d2">
              using <a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc-self">const_pointer</a> = const char*
            </dt>
            <dd>Const pointer alias.</dd>
            <dt id="a65add5a29c7b39af1d8cb8b6e6beb25c">
              using <a href="#a65add5a29c7b39af1d8cb8b6e6beb25c" class="m-doc-self">iterator</a> = char*
            </dt>
            <dd>Iterator alias.</dd>
            <dt id="a87aa96e8c463329027a011f84f318728">
              using <a href="#a87aa96e8c463329027a011f84f318728" class="m-doc-self">const_iterator</a> = const char*
            </dt>
            <dd>Const iterator alias.</dd>
            <dt id="a4f02bc0bf80f04fad6687474b8fc67d0">
              using <a href="#a4f02bc0bf80f04fad6687474b8fc67d0" class="m-doc-self">reverse_iterator</a> = bn::reverse_iterator&lt;<a href="#a65add5a29c7b39af1d8cb8b6e6beb25c" class="m-doc">iterator</a>&gt;
            </dt>
            <dd>Reverse iterator alias.</dd>
            <dt id="a50466c4cd73dd8f9ccb868676239110d">
              using <a href="#a50466c4cd73dd8f9ccb868676239110d" class="m-doc-self">const_reverse_iterator</a> = bn::reverse_iterator&lt;<a href="#a87aa96e8c463329027a011f84f318728" class="m-doc">const_<wbr />iterator</a>&gt;
            </dt>
            <dd>Const reverse iterator alias.</dd>
          </dl>
        </section>
        <section id="pub-static-attribs">
          <h2><a href="#pub-static-attribs">Public static variables</a></h2>
          <dl class="m-doc">
            <dt id="ab51de13154410954d3bbb1111b912d75">
              static <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> <a href="#ab51de13154410954d3bbb1111b912d75" class="m-doc-self">npos</a> <span class="m-label m-flat m-primary">constexpr</span>
            </dt>
            <dd>Exact meaning depends on context.</dd>
          </dl>
        </section>
        <section id="typeless-methods">
          <h2><a href="#typeless-methods">Constructors, destructors, conversion operators</a></h2>
          <dl class="m-doc">
            <dt id="af0d366aff4322b52216671506d2bbd42">
              <span class="m-doc-wrap-bumper"><a href="#af0d366aff4322b52216671506d2bbd42" class="m-doc-self">string_view</a>(</span><span class="m-doc-wrap">) <span class="m-label m-flat m-info">defaulted</span> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Default constructor.</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a1fe3775b8a09ca2f98627717b7ebecf8" class="m-doc">string_view</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>&amp; string) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructor.</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a9d5d21d2c9a7ebdfcfca88b4041e1685" class="m-doc">string_view</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructor.</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a353da0f560fb0b368afd1abcfc7369c3" class="m-doc">string_view</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr,
              <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> char_array_size) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructor.</dd>
          </dl>
        </section>
        <section id="pub-methods">
          <h2><a href="#pub-methods">Public functions</a></h2>
          <dl class="m-doc">
            <dt id="abf4390ec1da1b7d890306e043e6b1129">
              <span class="m-doc-wrap-bumper">auto <a href="#abf4390ec1da1b7d890306e043e6b1129" class="m-doc-self">front</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#af065d6c17887002b566e33e5be40ca60" class="m-doc">const_<wbr />reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reference to the first character.</dd>
            <dt id="afd325a8fee04ca7396a34e65faa492ac">
              <span class="m-doc-wrap-bumper">auto <a href="#afd325a8fee04ca7396a34e65faa492ac" class="m-doc-self">back</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#af065d6c17887002b566e33e5be40ca60" class="m-doc">const_<wbr />reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reference to the last character.</dd>
            <dt id="a9b03112f98dbf8d41bdfbbf4398cb457">
              <span class="m-doc-wrap-bumper">auto <a href="#a9b03112f98dbf8d41bdfbbf4398cb457" class="m-doc-self">data</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const pointer to the first character of the internal storage.</dd>
            <dt id="aac370af4d596c153c896f7befb351096">
              <span class="m-doc-wrap-bumper">auto <a href="#aac370af4d596c153c896f7befb351096" class="m-doc-self">begin</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a87aa96e8c463329027a011f84f318728" class="m-doc">const_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const iterator to the beginning of the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="a68db142c5c375b834f3e72a78b12d5b3">
              <span class="m-doc-wrap-bumper">auto <a href="#a68db142c5c375b834f3e72a78b12d5b3" class="m-doc-self">cbegin</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a87aa96e8c463329027a011f84f318728" class="m-doc">const_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const iterator to the beginning of the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="ae8c2e24161dbe781abdd231fb93f2b3f">
              <span class="m-doc-wrap-bumper">auto <a href="#ae8c2e24161dbe781abdd231fb93f2b3f" class="m-doc-self">end</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a87aa96e8c463329027a011f84f318728" class="m-doc">const_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const iterator to the end of the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="a73b87a9740f8c3b847da3c9600e8849a">
              <span class="m-doc-wrap-bumper">auto <a href="#a73b87a9740f8c3b847da3c9600e8849a" class="m-doc-self">cend</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a87aa96e8c463329027a011f84f318728" class="m-doc">const_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const iterator to the end of the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="ac92a29443bf9ecd0c23db71e4b06c512">
              <span class="m-doc-wrap-bumper">auto <a href="#ac92a29443bf9ecd0c23db71e4b06c512" class="m-doc-self">rbegin</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a50466c4cd73dd8f9ccb868676239110d" class="m-doc">const_<wbr />reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reverse iterator to the end of the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="a0ce94e5735d2b12734e3dbb080bb2482">
              <span class="m-doc-wrap-bumper">auto <a href="#a0ce94e5735d2b12734e3dbb080bb2482" class="m-doc-self">crbegin</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a50466c4cd73dd8f9ccb868676239110d" class="m-doc">const_<wbr />reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reverse iterator to the end of the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="ae93837d98266458c0bbc7224d57d788d">
              <span class="m-doc-wrap-bumper">auto <a href="#ae93837d98266458c0bbc7224d57d788d" class="m-doc-self">rend</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a50466c4cd73dd8f9ccb868676239110d" class="m-doc">const_<wbr />reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reverse iterator to the beginning of the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="a62cc725c6113c1e54d296a3f9918417d">
              <span class="m-doc-wrap-bumper">auto <a href="#a62cc725c6113c1e54d296a3f9918417d" class="m-doc-self">crend</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a50466c4cd73dd8f9ccb868676239110d" class="m-doc">const_<wbr />reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reverse iterator to the beginning of the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="a39de131539c985bb3eba63100f379612">
              <span class="m-doc-wrap-bumper">auto <a href="#a39de131539c985bb3eba63100f379612" class="m-doc-self">empty</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if it doesn&#x27;t contain any character.</dd>
            <dt id="a5513ced460ed0af191254a487e9c2074">
              <span class="m-doc-wrap-bumper">auto <a href="#a5513ced460ed0af191254a487e9c2074" class="m-doc-self">size</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the number of characters in the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt id="a0261f4b1f90520192db6473afd008083">
              <span class="m-doc-wrap-bumper">auto <a href="#a0261f4b1f90520192db6473afd008083" class="m-doc-self">length</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the number of characters in the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ad4f3f2c9ded639bbd89dc90aace741df" class="m-doc">operator[]</a>(</span><span class="m-doc-wrap"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> position) const -&gt; <a href="#af065d6c17887002b566e33e5be40ca60" class="m-doc">const_<wbr />reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reference to the character at the specified location.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a557a5ac3420af3ce0c09731eda9c2c3b" class="m-doc">at</a>(</span><span class="m-doc-wrap"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> position) const -&gt; <a href="#af065d6c17887002b566e33e5be40ca60" class="m-doc">const_<wbr />reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reference to the character at the specified location.</dd>
            <dt id="aceea65d273ca01ed2eb13d999f92e140">
              <span class="m-doc-wrap-bumper">auto <a href="#aceea65d273ca01ed2eb13d999f92e140" class="m-doc-self">substr</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a copy of this.</dd>
            <dt id="a40165d04db5c7fd3ed826ee8d5312340">
              <span class="m-doc-wrap-bumper">auto <a href="#a40165d04db5c7fd3ed826ee8d5312340" class="m-doc-self">substr</a>(</span><span class="m-doc-wrap"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> position) const -&gt; <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> of the substring [position, <a href="#a5513ced460ed0af191254a487e9c2074" class="m-doc">size()</a> - position).</dd>
            <dt id="a2fc20f07b0a88a9ad8e14e59d574272d">
              <span class="m-doc-wrap-bumper">auto <a href="#a2fc20f07b0a88a9ad8e14e59d574272d" class="m-doc-self">substr</a>(</span><span class="m-doc-wrap"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> position,
              <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> count) const -&gt; <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> of the substring [position, position + count).</dd>
            <dt id="ad9db4341b78e3a3e5c5e4979e71cf9ea">
              <span class="m-doc-wrap-bumper">void <a href="#ad9db4341b78e3a3e5c5e4979e71cf9ea" class="m-doc-self">remove_prefix</a>(</span><span class="m-doc-wrap"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> count) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Shrinks the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> by moving its start forward by count characters.</dd>
            <dt id="a75e434480d95e870a895c3ad34526917">
              <span class="m-doc-wrap-bumper">void <a href="#a75e434480d95e870a895c3ad34526917" class="m-doc-self">remove_suffix</a>(</span><span class="m-doc-wrap"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> count) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Shrinks the <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> by moving its end backward by count characters.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a9797b65a989658f28b1514f01702883c" class="m-doc">starts_with</a>(</span><span class="m-doc-wrap"><a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc">value_<wbr />type</a> value) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string begins with the given prefix.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a495777f5c688d614d74527611c7543db" class="m-doc">starts_with</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string begins with the given prefix.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a1a2c7d6f7bb56b95fbd055c63a40337e" class="m-doc">starts_with</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string begins with the given prefix.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#acd08ee3cb310d33358e8cefb44dd8931" class="m-doc">ends_with</a>(</span><span class="m-doc-wrap"><a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc">value_<wbr />type</a> value) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string ends with the given prefix.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a70d3e9b78063818dec7f17fd9021cc53" class="m-doc">ends_with</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string ends with the given prefix.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a10d67a4912bc0aef91b56e101703cc23" class="m-doc">ends_with</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string ends with the given prefix.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ac81545eec695b26d539c0f42f75683aa" class="m-doc">contains</a>(</span><span class="m-doc-wrap"><a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc">value_<wbr />type</a> value) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string contains the given character.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a81e18d851a323cf65cb207f32506e02e" class="m-doc">contains</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string contains the given substring.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#af34a829a6fa76c93d066fd040ae3be48" class="m-doc">contains</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Checks if the referenced string contains the given substring.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a823b7265e4c2e2608bb6bf42e8732869" class="m-doc">find</a>(</span><span class="m-doc-wrap"><a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc">value_<wbr />type</a> value) const -&gt; <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Finds the first substring equal to the given character.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a34b78512b8a9880c026b722c59394106" class="m-doc">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) const -&gt; <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Finds the first substring equal to the given character sequence.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ae631c6a2db4463b5eca6bb44cc32e663" class="m-doc">find</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) const -&gt; <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Finds the first substring equal to the given character sequence.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a3a3458908b9672982cf7bb96d19cd1f0" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Exchanges the contents of this <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> with those of the other one.</dd>
          </dl>
        </section>
        <section id="friends">
          <h2><a href="#friends">Friends</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ae5ce39759edaa95c86e319862b3540bd" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Exchanges the contents of a <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> with those of another one.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#aac497399ac75e3e25c43b15b4156bb4b" class="m-doc">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Equal operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a40d6a04cf2d6a94a370d15274c0c80bf" class="m-doc">operator&lt;</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Less than operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a7b33cf249703122a5981b57eb0a62a05" class="m-doc">operator&gt;</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Greater than operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a5f5f0b34b953533038f166c6f11a58f7" class="m-doc">operator&lt;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Less than or equal operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ae4face7a5a77870e7fae25d789813ba8" class="m-doc">operator&gt;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Greater than or equal operator.</dd>
          </dl>
        </section>
        <section>
          <h2>Function documentation</h2>
          <section class="m-doc-details" id="a1fe3775b8a09ca2f98627717b7ebecf8"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a1fe3775b8a09ca2f98627717b7ebecf8" class="m-doc-self">string_view</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>&amp; string) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">string</td>
                  <td>Base string to reference.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a9d5d21d2c9a7ebdfcfca88b4041e1685"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a9d5d21d2c9a7ebdfcfca88b4041e1685" class="m-doc-self">string_view</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to null-terminated characters array.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a353da0f560fb0b368afd1abcfc7369c3"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a353da0f560fb0b368afd1abcfc7369c3" class="m-doc-self">string_view</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr,
              <a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> char_array_size) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to characters array.</td>
                </tr>
                <tr>
                  <td>char_array_size</td>
                  <td>Characters count of the characters array.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="ad4f3f2c9ded639bbd89dc90aace741df"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="#af065d6c17887002b566e33e5be40ca60" class="m-doc">const_<wbr />reference</a> bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad4f3f2c9ded639bbd89dc90aace741df" class="m-doc-self">operator[]</a>(</span><span class="m-doc-wrap"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> position) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Returns a const reference to the character at the specified location.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">position</td>
                  <td>Character&#x27;s position index.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Const reference to the character at the specified location.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a557a5ac3420af3ce0c09731eda9c2c3b"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="#af065d6c17887002b566e33e5be40ca60" class="m-doc">const_<wbr />reference</a> bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a557a5ac3420af3ce0c09731eda9c2c3b" class="m-doc-self">at</a>(</span><span class="m-doc-wrap"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> position) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Returns a const reference to the character at the specified location.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">position</td>
                  <td>Character&#x27;s position index.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Const reference to the character at the specified location.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a9797b65a989658f28b1514f01702883c"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a9797b65a989658f28b1514f01702883c" class="m-doc-self">starts_with</a>(</span><span class="m-doc-wrap"><a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc">value_<wbr />type</a> value) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string begins with the given prefix.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">value</td>
                  <td>Single character.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string begins with the given prefix; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a495777f5c688d614d74527611c7543db"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a495777f5c688d614d74527611c7543db" class="m-doc-self">starts_with</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string begins with the given prefix.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>Another <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string begins with the given prefix; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a1a2c7d6f7bb56b95fbd055c63a40337e"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a1a2c7d6f7bb56b95fbd055c63a40337e" class="m-doc-self">starts_with</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string begins with the given prefix.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to null-terminated characters array.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string begins with the given prefix; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="acd08ee3cb310d33358e8cefb44dd8931"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#acd08ee3cb310d33358e8cefb44dd8931" class="m-doc-self">ends_with</a>(</span><span class="m-doc-wrap"><a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc">value_<wbr />type</a> value) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string ends with the given prefix.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">value</td>
                  <td>Single character.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string ends with the given prefix; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a70d3e9b78063818dec7f17fd9021cc53"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a70d3e9b78063818dec7f17fd9021cc53" class="m-doc-self">ends_with</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string ends with the given prefix.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>Another <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string ends with the given prefix; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a10d67a4912bc0aef91b56e101703cc23"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a10d67a4912bc0aef91b56e101703cc23" class="m-doc-self">ends_with</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string ends with the given prefix.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to null-terminated characters array.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string ends with the given prefix; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ac81545eec695b26d539c0f42f75683aa"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ac81545eec695b26d539c0f42f75683aa" class="m-doc-self">contains</a>(</span><span class="m-doc-wrap"><a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc">value_<wbr />type</a> value) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string contains the given character.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">value</td>
                  <td>Single character.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string contains the given character; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a81e18d851a323cf65cb207f32506e02e"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a81e18d851a323cf65cb207f32506e02e" class="m-doc-self">contains</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string contains the given substring.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>Another <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string contains the given substring; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="af34a829a6fa76c93d066fd040ae3be48"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#af34a829a6fa76c93d066fd040ae3be48" class="m-doc-self">contains</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Checks if the referenced string contains the given substring.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to null-terminated characters array.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the referenced string contains the given substring; <code>false</code> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a823b7265e4c2e2608bb6bf42e8732869"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a823b7265e4c2e2608bb6bf42e8732869" class="m-doc-self">find</a>(</span><span class="m-doc-wrap"><a href="#a7d04ae096eaabf9da3b726419b0756d7" class="m-doc">value_<wbr />type</a> value) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Finds the first substring equal to the given character.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">value</td>
                  <td>Single character.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Position of the first character of the found substring, or npos if no such substring is found.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a34b78512b8a9880c026b722c59394106"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a34b78512b8a9880c026b722c59394106" class="m-doc-self">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Finds the first substring equal to the given character sequence.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>Another <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Position of the first character of the found substring, or npos if no such substring is found.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ae631c6a2db4463b5eca6bb44cc32e663"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="#a8d641541b3c92fe421c0172668d386b4" class="m-doc">size_<wbr />type</a> bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae631c6a2db4463b5eca6bb44cc32e663" class="m-doc-self">find</a>(</span><span class="m-doc-wrap"><a href="#a2f338d9a2eff32c5c28aecad98cc23d2" class="m-doc">const_<wbr />pointer</a> char_array_ptr) const <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Finds the first substring equal to the given character sequence.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to null-terminated characters array.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Position of the first character of the found substring, or npos if no such substring is found.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a3a3458908b9672982cf7bb96d19cd1f0"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />string_view::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a3a3458908b9672982cf7bb96d19cd1f0" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; other) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Exchanges the contents of this <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> with those of the other one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="ae5ce39759edaa95c86e319862b3540bd"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae5ce39759edaa95c86e319862b3540bd" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Exchanges the contents of a <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> with those of another one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to exchange the contents with.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="aac497399ac75e3e25c43b15b4156bb4b"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aac497399ac75e3e25c43b15b4156bb4b" class="m-doc-self">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Equal operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> is equal to the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a40d6a04cf2d6a94a370d15274c0c80bf"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a40d6a04cf2d6a94a370d15274c0c80bf" class="m-doc-self">operator&lt;</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Less than operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> is lexicographically less than the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a7b33cf249703122a5981b57eb0a62a05"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a7b33cf249703122a5981b57eb0a62a05" class="m-doc-self">operator&gt;</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Greater than operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> is lexicographically greater than the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a5f5f0b34b953533038f166c6f11a58f7"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a5f5f0b34b953533038f166c6f11a58f7" class="m-doc-self">operator&lt;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Less than or equal operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> is lexicographically less than or equal to the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ae4face7a5a77870e7fae25d789813ba8"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae4face7a5a77870e7fae25d789813ba8" class="m-doc-self">operator&gt;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; a,
              const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Greater than or equal operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> is lexicographically greater than or equal to the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
        </section>
      </div>
    </div>
  </div>
</article></main>
<div class="m-doc-search" id="search">
  <a href="#!" onclick="return hideSearch()"></a>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-m-8 m-push-m-2">
        <div class="m-doc-search-header m-text m-small">
          <div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
          <div id="search-symbolcount">&hellip;</div>
        </div>
        <div class="m-doc-search-content">
          <form>
            <input type="search" name="q" id="search-input" placeholder="Loading &hellip;" disabled="disabled" autofocus="autofocus" autocomplete="off" spellcheck="false" />
          </form>
          <noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
          <div id="search-help" class="m-text m-dim m-text-center">
            <p class="m-noindent">Search for symbols, directories, files, pages or
            modules. You can omit any prefix from the symbol or file path; adding a
            <code>:</code> or <code>/</code> suffix lists all members of given symbol or
            directory.</p>
            <p class="m-noindent">Use <span class="m-label m-dim">&darr;</span>
            / <span class="m-label m-dim">&uarr;</span> to navigate through the list,
            <span class="m-label m-dim">Enter</span> to go.
            <span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
            copy a link to the result using <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">M</span> produces a Markdown link.</p>
          </div>
          <div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.</div>
          <ul id="search-results"></ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="search-v2.js"></script>
<script src="searchdata-v2.js" async="async"></script>
<footer><nav>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <p>Butano Docs. Created with <a href="https://doxygen.org/">Doxygen</a> 1.14.0 and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
      </div>
    </div>
  </div>
</nav></footer>
</body>
</html>
